<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
    <title>风流第二次作业_王若禹</title>
    <link rel="stylesheet" type="text/css" href="css_pc.css" media="screen and (min-width:800px)">
    <link rel="stylesheet" type="text/css" href="css_mobile.css" media="screen and (max-width:799px)">
</head>
<body>
<script src="formcheck.js"></script>
            <div class="wrapper content">
			    <h1>
                    注册
                </h1>
                <h3>
                    风流新媒体·技术部第二次作业·王若禹
                </h3>
				<form action="main.html" onSubmit="return checkForm()">
                <div class="form-itemGroup userName">
					<i class="material-icons userName">account_circle</i>
                    <input class="input userName" id="userName" placeholder="用户名" type="text" onblur="checkUserName()">
                    <span class="underline userName"></span>
					<p class="info userName" id="errName">用户名至少三位</p>
                </div>
				<div class="form-itemGroup email">
					<i class="material-icons">email</i>
                    <input class="input" id="email" placeholder="E-mail" type="email" onblur="checkEmail()">
                    <span class="underline email"></span>
					<p class="info email" id="errEmail">请输入有效的电子邮箱</p>
                </div>
				<div class="form-itemGroup userPhone">
					<i class="material-icons userPhone">phone</i>
                    <input class="input userPhone" id="userPhone" placeholder="移动电话" type="text" onblur="checkPhone()">
                    <span class="underline userPhone"></span>
					<p class="info userPhone" id="errPhone">请输入11位中国大陆手机号码</p>
                </div>
                <div class="form-itemGroup userPassword">
					<i class="material-icons userPassword">vpn_key</i>
                    <input class="input userPassword" id="userPassword" placeholder="请输入密码" type="password" onblur="checkPassword()">
                    <span class="underline userPassword"></span>
					<p class="info userPassword" id="errPassword">密码应为6-20位字母数字组合</p>
                </div>
                <div class="form-itemGroup userConfirmPassword">
					<i class="material-icons userConfirmPassword">done_all</i>
                    <input class="input userConfirmPassword" id="userConfirmPassword" placeholder="请确认密码" type="password" onblur="confirmPassword()">
                    <span class="underline userConfirmPassword"></span>
					<p class="info userConfirmPassword" id="errConPass">请重复密码</p>
                </div>
				<button type="button" class="cancel">取消</button>
				<button type="submit" class="submit" id="submit">注册</button>
        </div>
</body>
</html>